var a;
a = { name: '路飞', age: 110, sex: "不男不女", sex1: 0, h: 11 };
// a.name='110'
// a.age=10
console.log(a);
// let b = function (a: number, b: number): number {
//     console.log(110);
//     return a + b
// }
// b(1, 2)
//ts 声明一个函数
// let e: (a: number, b: number) => number
// e = function (n1: number, n2: number): number {
//     return n1 + n2
// }
// let f:number=e(1,2)
// console.log(f);
//ts 声明数组
//语法  类型[]
// let e: string[]
// e=[1,2,3]
// console.log(e);
//元组
var w;
var f = ['2', 1];
console.log(f);
//枚举
var Sex;
(function (Sex) {
    Sex[Sex["Male"] = 0] = "Male";
    Sex[Sex["Female"] = 1] = "Female";
    Sex[Sex["ts"] = 2] = "ts";
})(Sex || (Sex = {}));
var i;
i = { name: '路飞', sex: Sex.Female };
if (i.sex === Sex.Female) {
    console.log(i.name + '是一个男的');
}
var k;
k = 1;
console.log(i);
